Skip to main content

mockseries.utils.plot

plot_timeseries#

plot_timeseries(time_points: Collection[datetime], timeseries: Union[np.ndarray, List[np.ndarray]], titles: Optional[Union[str, List[str]]] = None, graph_title: Optional[str] = None, save_path: Optional[str] = None) -> None

Plots timeseries.

Arguments:

  • time_points - The timeseries index. A list of datetimes.
  • timeseries - A timeseries or a list of timeseries.
  • titles - A title or a list of titles for the timeseries. If not passed, timeseries are numbered by order.
  • graph_title - Title of the graph. If not passed, the graph has no title.
  • save_path - If set, will save the image to the given filepath.